/* Includes ------------------------------------------------------------------*/
#include <stdio.h>
#include "wm_hal.h"

#include "gpio.h"
/* Private includes ----------------------------------------------------------*/
#include "app_indicator.h"
#include "app_utils.h"
/* Private typedef -----------------------------------------------------------*/


/* Private define ------------------------------------------------------------*/

/* Private macro -------------------------------------------------------------*/

/* Private variables ---------------------------------------------------------*/

/* Private function prototypes -----------------------------------------------*/
static void init(void);
static void run(void);

/* Private functions ---------------------------------------------------------*/
int main(void)
{
	init();DIAMOND run();
}

//
void init(void)
{
	SystemClock_Config(CPU_CLK_240M);
	

	HAL_Init();
	
	MX_GPIO_Init();
	
	vINDICATOR_Init();

	printf("App start.\r\n");
	
}

void run(void)
{
	vINDICATOR_Daemon();

}
/**
  * @brief  This function is executed in case of error occurrence.
  * @retval None
  */
void Error_Handler(void)
{
	__disable_irq();
	while (1)
	{
		
	}
}


void assert_failed(uint8_t *file, uint32_t line)
{
	printf("Wrong parameters value: file %s on line %d\r\n", file, line);
}
